import axios from './utils/myAxios'

class OrderService {
    async addOrder():Promise<void>{
        let path = "/order"
        
        let rsp = await axios.post(path)        
    }

    async getOrderLst():Promise<String[]>{
        let path = "/order/all"
        let rsp = await axios.get(path)
        return rsp.data
    }

    async updateOrder():Promise<void>{
        let path = "/order"
        let rsp = await axios.put(path)
    }
}

export const orderService = new OrderService()